// 静态数组array
#include <iostream>
#include <array>
using namespace std;

int main(int argc, char const *argv[])
{
    array<int,5> arr = {1,2,3,4,5};

    for(int i=0; i < arr.size(); i++)
    {
        cout << arr[i] << " ";
    }
    cout << endl;

    for(array<int,5>::iterator it=arr.begin();it!=arr.end();it++)
    {
        cout << *it << " ";
    }
    cout << endl;

    return 0;
}
